<!--{template common/header_simple_start}-->
<script type="text/javascript">
	var selorg={};
	<!--{if $openarr}-->
	selorg.openarr=$openarr;  
	<!--{/if}-->
	selorg.add=function(ctrlid,vals){
		if(vals[0].orgid=='other') vals[0].path='{lang all_personnel}';
		jQuery('#'+ctrlid+'_Menu').html(vals[0].path+' ');
		jQuery('#sel_'+ctrlid).val(vals[0].orgid);
	}
  </script>
<!--{template common/header_simple_end}-->
<!--{template commer_header}-->
<div class="bs-container clearfix">
	<div class="bs-main-container">
    <div class="main-header clearfix">
      <ul class="nav nav-pills"> 
        <li class="nav-item"><a class="nav-link active" href="{MOD_URL}&op=export&orgid=$orgid">{lang export_change}</a></li>
      </ul>
    </div>
    <div class="main-content">
      <div class="row">
        <div class="col-md-12">
      <form id="cpform" action="{MOD_URL}&op=export" class="form-horizontal form-horizontal-left"  method="post" name="cpform" onsubmit="return validate(this)">
        <input type="hidden" value="{FORMHASH}" name="formhash">
        <input type="hidden" value="true" name="exportsubmit">
        <div class="row mb-3">
          <label class="col-sm-2">{lang export_range}：</label>
          <div class="col-sm-10">
             <div class="dropdown">
                <input id="sel_orgid"  type="hidden" name="orgid"  value="$orgid" />
                <button type="button" id="orgid_Menu" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown">
                  $orgpath 
                </button>
                <div id="orgid_dropdown_menu" class="dropdown-menu org-sel-box" role="menu" aria-labelledby="orgid_Menu">
                   <iframe name="orgids_iframe" class="org-sel-box-iframe" src="index.php?mod=system&op=orgtree&ctrlid=orgid&nouser=1&stype=1" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" allowtransparency="true" ></iframe>
                </div>
              </div>
						<span  class="help-block">{lang export_range_user}</span></div>
          </div>
          
        <div class="row mb-3">
          <label class="col-sm-2">{lang export_data}：</label>
          <div class="col-sm-10">
            <!--{loop $h0 $key $title}-->
						<div class="form-check form-check-inline">
              <input class="form-check-input" type="checkbox" id="$key" name="item[]" value="$key" checked="checked">
              <label class="form-check-label" for="$key">$title</label>
            </div>
            <!--{/loop}-->
						<span class="help-block"></span>
          </div>
          
        </div>
        <dl>
          <button type="submit" class="btn btn-primary" data-loading-text="{lang in_export}">{lang export_immediately}</button>
        </dl>
      </form>
        </div>
      </div>
     </div>
	</div>
 </div>
 <script type="text/javascript">
 function validate(form){
	 jQuery(form).find('button[type=submit]').button('loading');
	 return true;
 }
 </script>
<!--{template common/footer_simple}--> 
